import request from '@/utils/request'
// 查询菜单详细
export function costShiftlistAPI(params) {
    return request({
      url: '/ny-iqc/costShift/list' ,
      method: 'get',
      params
    })
  }
  
  // 初始化费用转嫁单(创建转嫁单)
export function initInfoAPI(params) { 
    return request({
        url: '/ny-iqc/costShift/initInfo' ,
        method: 'get',
        params
    })
}
// 获得序列号ID(用于明细新建的时候获取ID，上传附件需要绑定ID进行上传)
export function getIdAPI() { 
  return request({
      url: '/ny-iqc/costShift/getId' ,
      method: 'get' 
  })
}
//  转嫁单 新增/修改
export function saveOrUpdateAPI(data) { 
    return request({
        url: '/ny-iqc/costShift/saveOrUpdate' ,
        method: 'post',
        data: data
    })
}
// 费用转嫁单详情接口
export function costInfoAPI(id) { 
  return request({
      url: '/ny-iqc/costShift/selectone/'+id ,
      method: 'get'
  })
}
// 会签人列表
export function approvalUserslistAPI(params) { 
  return request({
      url: '/ny-iqc/approvalUsers/list' ,
      method: 'get',
      params
  })
}
// 审批意见列表
export function flowNodeAPI(id) { 
  return request({
      url: '/ny-iqc/costShift/flowNode/'+id ,
      method: 'get'
  })
}




// **************************************************

// 费用转嫁单审核人列表
export function approvalListAPI(params) { 
  return request({
      url: '/ny-iqc/costShift/approvalList' ,
      method: 'get',
      params
  })
}
// 费用转嫁单审批
export function approvalAPI(data) { 
  return request({
      url: '/ny-iqc/costShift/approval' ,
      method: 'post',
      data: data
  })
}
// 费用转嫁单审核人列表
export function submitApprovalAPI(data) { 
  return request({
      url: '/ny-iqc/costShift/submitApproval' ,
      method: 'post',
      data
  })
}
// 审批意见详情
export function flowNodeInfoAPI(id) { 
  return request({
      url: '/ny-iqc/costShift/flowNodeInfo/'+id ,
      method: 'get' 
  })
}

// ************************************************
  // 代办转已办
export function undoToDoAPI(id) { 
  return request({
      url: '/ny-iqc/costShift/undoToDo/'+id ,
      method: 'get' 
  })
}